I have a document['key']
that i am defining in elsewhere in my code. Basically an API key that is being set by client in html <script></script>
tag like this.
<script type="text/javascript">
(function(){
document.clientKey = 'a uuid unique to client';
})();
</script>
i called this key in my javascript file via document['clientKey']
and it was working fine, until i passed it to closure, which renames it to document.I
. Can I force closure to keep the string 'clientKey'